package com.corejava.training.interfaces;

public class Dog implements Animal {

	// implementation of eat method
	public void eat(){
		System.out.println("Dog in Dog class devouvours the food!!");
	}
	
	// implementation of walk method
	public void walk(){
	
		System.out.println("Dog can't have cat walk");
	}
	
	// implementation of sleep method
	public void sleep(){
		
		System.out.println("Dogs sleep less than cat! ");
	}
	
	// main method
	public static void main(String[] args){
		Dog d = new Dog();
		d.eat();
		d.walk();
		d.sleep();
	}
	
}
